package com.carkeeper.user.service;

import com.carkeeper.entity.PageResult;
import com.carkeeper.entity.Result;
import com.carkeeper.user.pojo.Employee;

import java.util.List;
import java.util.Map;

public interface EmployeeService {
    /**
     * 分页查询全部数据
     * @return
     */
    List<Employee> findAll();

    /**
     * 增加员工
     * @param employee
     *
     */
    void add(Employee employee);

    /***
     * 根据ID查询数据
     * @param id
     * @return
     */
    Employee findById(Integer id);


    //更新员工状态
    void update(Employee employee);

    //带条件搜索
    List<Employee> search(int pageSize, int currentPage, Map<String, Object> searchMap);

    //锁定员工账号
    Result lock(Integer id);
}
